package com.mdinfo.gw.door.web

import com.mdinfo.base.common.bean.CommonResult
import com.mdinfo.base.common.bean.DataGrid
import com.mdinfo.gw.door.param.DoorEventListQueryParam
import com.mdinfo.gw.door.service.IDoorEventService
import com.mdinfo.gw.door.vo.DoorEventListQueryVo
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.validation.Valid

/**
 * Created by Administrator on 2018/1/8.
 */
@RestController
@RequestMapping("/sys/doorEvent/")
class DoorEeventController(
        val doorEventService:IDoorEventService
) {

    @RequestMapping("/listQuery")
    fun listQuery(@Valid param: DoorEventListQueryParam)
            :CommonResult<DataGrid<DoorEventListQueryVo>>{

        return doorEventService.listQuery(param)
    }
}
